import { postAxios, getAxios } from '@/utils/http'

export const whiteApi = {
  getWhiteList: (data) => {
    return postAxios('/white/list', data);
  },

  batchDeleteWhite: (data) => {
    return postAxios('/white/batch/delete/',data);
  },

  addWhite: (data) => {
    return postAxios('/white/add', data);
  },

  updateWhite: (data) => {
    return postAxios('/white/update', data);
  },
  changeStart: (data) => {
    return getAxios('/white/change/start?id='+data.id+"&isDelete="+data.isDelete);
  },
  getDeptOptions:() =>{
    return getAxios('/white/date/options');
  }

};